Ext.define('Risk.view.RmPanel', {
    extend: 'Ext.form.Panel',
    alias: 'widget.rmpanel',
    layout:  {
        type: 'table',
        columns: 1
    },
    isLoad:false,
    width:520,
    buttonAlign:'center', 
    autoShow: true,
    url:'rm/addorupdate.do',
    initComponent: function() {
      //初始化Window中的内容  pufieldSet
    	this.items = [
    	        {
    	          xtype:'fieldset',
    	          title:'电力线-雷击建筑物附近内部系统故障分量【Pm】',
    	          height:230,
    	          margin:'0 0 0 10',
	    	      items:[ 
	    	             {
	    	            	xtype:'checkbox',
	    	            	boxLabel:'安装SPD',
	    	            	disabled:true
	    	             },
	    	             {
	    	        	 width:680,
	    	        	 margin:'5 10 5 5',
	    	        	 xtype: 'pmfieldset',
	    	        	 colspan:2
	    	            }
	    	           ]
    	        },
    	        {
      	          xtype:'fieldset',
      	          title:'通信线-雷击建筑物附近内部系统故障分量【Pm】',
      	          height:230,
      	          margin:'0 0 0 10',
  	    	      items:[ 
  	    	             {
  	    	            	xtype:'checkbox',
  	    	            	boxLabel:'安装SPD',
  	    	            	disabled:true
  	    	             },
  	    	             {
  	    	        	 width:680,
  	    	        	 margin:'5 10 5 5',
  	    	        	 xtype: 'pm2fieldset',
  	    	        	 colspan:2
  	    	            }
  	    	           ]
      	        },
      	        {
      	        	xtype:'resultfieldset',
      	        	margin:'5 0 5 10'
      	        },
      	      {
      	        	xtype:'hidden',
      	        	name:'id',
      	        	value:null
      	        }
        ];
    	this.buttons =[ 
	    	{
	    		text:'计算',
	    		action:'cau'
	    	},
	    	{
	    		text:'保存参数',
	    		action:'save'
	    	}
    	];
        this.callParent(arguments);
    }
    
});